package com.gc.services.impl;

import com.gc.dao.custom.VorAuditMapper;
import com.gc.pojo.SysVorAudit;
import com.gc.services.VorAuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VorAuditServiceImpl implements VorAuditService {
    @Autowired
    private VorAuditMapper vorAuditMapper;

    @Override
    public int add(SysVorAudit audit) {
        return vorAuditMapper.insertSelective(audit);
    }

    @Override
    public SysVorAudit getByVorId(Integer vorId) {
        return vorAuditMapper.selectByVorId(vorId);
    }

    @Override
    public int modify(SysVorAudit audit) {
        return vorAuditMapper.updateByPrimaryKey(audit);
    }
}
